<?php

if (!defined('BASEPATH'))
  exit('No direct script access allowed');
/*
  | -------------------------------------------------------------------
  | SMILEYS
  | -------------------------------------------------------------------
  | This file contains an array of smileys for use with the emoticon helper.
  | Individual images can be used to replace multiple simileys.  For example:
  | :-) and :) use the same image replacement.
  |
  | Please see user guide for more info:
  | http://codeigniter.com/user_guide/helpers/smiley_helper.html
  |
 */

// New Smileys
$smiley_dir = FCPATH . 'assets/smileys';
$smiley_files = scandir($smiley_dir);
$smileys_new = array();
if (!empty($smiley_files) && is_array($smiley_files)) {
  foreach ($smiley_files as $emoji) {
	if (!empty($emoji) && $emoji != '.' && $emoji != '..') {
	  $smiley_key = ':' . str_replace('.png', '', $emoji) . ':';
	  $smileys_new[$smiley_key] = array($emoji, '19', '19', $smiley_key);
	}
  }
}

// Old smiles to New
$smileys_old = array(
	// smiley => image name, width,	height,	alt
	':-)' => array('grinning.png', '19', '19', ':-)'),
	':lol:' => array('laughing.png', '19', '19', ':lol:'),
	':D' => array('smiley.png', '19', '19', ':D'),
	':-D' => array('smiley.png', '19', '19', ':-D'),
	':cheese:' => array('grimacing.png', '19', '19', ':cheese:'),
	':)' => array('smile.png', '19', '19', ':)'),
	';-)' => array('wink.png', '19', '19', ';-)'),
	';)' => array('wink.png', '19', '19', ';)'),
	':smirk:' => array('smirk.png', '19', '19', ':smirk:'),
	':roll:' => array('flushed.png', '19', '19', ':roll:'),
	':-S' => array('confused.png', '19', '19', ':-S'),
	':wow:' => array('open_mouth.png', '19', '19', ':wow:'),
	':bug:' => array('flushed.png', '19', '19', ':bug:'),
	':-P' => array('stuck_out_tongue.png', '19', '19', ':-P'),
	'%-P' => array('stuck_out_tongue_closed_eyes.png', '19', '19', '%-P'),
	';-P' => array('wink2.png', '19', '19', ';-P'),
	':P' => array('stuck_out_tongue.png', '19', '19', ':P'),
	':blank:' => array('no_mouth.png', '19', '19', ':blank:'),
	':long:' => array('longface.gif', '19', '19', 'long face'),
	':ohh:' => array('ohh.gif', '19', '19', 'ohh'),
	':grrr:' => array('grrr.gif', '19', '19', 'grrr'),
	':gulp:' => array('gulp.gif', '19', '19', 'gulp'),
	'8-/' => array('ohoh.gif', '19', '19', 'oh oh'),
	':down:' => array('downer.gif', '19', '19', 'downer'),
	':red:' => array('embarrassed.gif', '19', '19', 'red face'),
	':sick:' => array('sick.gif', '19', '19', 'sick'),
	':shut:' => array('shuteye.gif', '19', '19', 'shut eye'),
	':-/' => array('hmm.gif', '19', '19', 'hmmm'),
	'>:(' => array('mad.gif', '19', '19', 'mad'),
	':mad:' => array('mad.gif', '19', '19', 'mad'),
	'>:-(' => array('angry.gif', '19', '19', 'angry'),
	':angry:' => array('angry.gif', '19', '19', 'angry'),
	':@' => array('angry.gif', '19', '19', 'angry'),
	':zip:' => array('zip.gif', '19', '19', 'zipper'),
	':kiss:' => array('kiss.gif', '19', '19', 'kiss'),
	':ahhh:' => array('shock.gif', '19', '19', 'shock'),
	':coolsmile:' => array('shade_smile.gif', '19', '19', 'cool smile'),
	':coolsmirk:' => array('shade_smirk.gif', '19', '19', 'cool smirk'),
	':coolgrin:' => array('shade_grin.gif', '19', '19', 'cool grin'),
	':coolhmm:' => array('shade_hmm.gif', '19', '19', 'cool hmm'),
	':coolmad:' => array('shade_mad.gif', '19', '19', 'cool mad'),
	':coolcheese:' => array('shade_cheese.gif', '19', '19', 'cool cheese'),
	':vampire:' => array('vampire.gif', '19', '19', 'vampire'),
	':snake:' => array('snake.gif', '19', '19', 'snake'),
	':exclaim:' => array('exclaim.gif', '19', '19', 'excaim'),
	':question:' => array('question.gif', '19', '19', 'question') // no comma after last item
);

// Merge old and new smileys
$smileys = array_merge($smileys_old, $smileys_new);

/* End of file smileys.php */
/* Location: ./application/config/smileys.php */